Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(IntegrityCheck): Ensure the check is run if no results are available #46174

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jun 27, 2024

Summary

If there are no cached results the current implementation was also returning an empty array, but this was the same as when there was a successful run. So to distinguish this we return null if there are no results. In this case we need to rerun the integrity checker.

Checklist

@susnux susnux added bug 3. to review Waiting for reviews php Pull requests that update Php code labels Jun 27, 2024
@susnux susnux added this to the Nextcloud 30 milestone Jun 27, 2024
@susnux susnux force-pushed the fix/integrity-check branch from 9c5e92d to 9373347 Compare June 27, 2024 13:27
@susnux
Copy link
Contributor Author

susnux commented Jun 27, 2024

/backport to stable29

@susnux
Copy link
Contributor Author

susnux commented Jun 27, 2024

/backport to stable28

If there are no cached results the current implementation was also returning an empty array,
but this was the same as when there was a successful run.
So to distinguish this we return `null` if there are *no* results.
In this case we need to rerun the integrity checker.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/integrity-check branch from 9373347 to 8fc498f Compare July 3, 2024 09:37
@susnux susnux requested a review from come-nc July 3, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug feature: settings php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants